package com.androidx.p013lv.invention;

import com.androidx.p013lv.base.http.HttpUtils;
import com.androidx.p013lv.base.http.JsonParams;
import com.androidx.p013lv.base.http.UrlManager;
import com.androidx.p013lv.base.http.callback.HttpCallback;

/* renamed from: com.androidx.lv.invention.HttpAttention */
public class HttpAttention {
    static HttpAttention httpAttention;

    public static HttpAttention getInstance() {
        if (httpAttention == null) {
            httpAttention = new HttpAttention();
        }
        return httpAttention;
    }

    public <T> void saveAttention(int i, HttpCallback<T> httpCallback) {
        HttpUtils.getInsatance().post(UrlManager.getInsatance().saveAttention(), JsonParams.build().add("contentId", Integer.valueOf(i)).commit(), httpCallback);
    }

    public <T> void cancelAttention(int i, HttpCallback<T> httpCallback) {
        HttpUtils.getInsatance().post(UrlManager.getInsatance().cancelAttention(), JsonParams.build().add("contentId", Integer.valueOf(i)).commit(), httpCallback);
    }
}
